package ngat.oss;

import ngat.net.*;
import ngat.net.transaction.*;

import java.io.*;
import java.util.*;

/** Implementation of the TransactionServer for handling commands sent by 
 * various OSS clients (RCS, OCR etc) using JMS/MA.
 * <br>
 * $Id: TransactionServer.java,v 1.1 2006/11/27 08:45:00 snf Exp $
 */
public class TransactionServer extends SocketServer {

    /** Create an OSS TransactionServer bound to the specified port. 
     * This should have been defined in an OSS configuration file 
     * as <b>pos.port</b>.
     * @param name The name of this server.
     * @param port The port to bind to.
     * @param tmx  The OSS Transaction Executor.
     */
    //public TransactionServer(String name, int port, TransactionManager.Executor tmx) throws IOException {
    public TransactionServer(String name, int port, Vector queue) throws IOException {
	super(name);
	bind(port);
	///rhFactory = new OSSCommandImplFactory(tmx);
	rhFactory = new OSSCommandImplFactory(queue);
	piFactory = JMSMA_ProtocolImplFactory.getInstance();	
    }
      
	
}




